
/* -----------------
* brief 
* 1. this is code gen by tools 
* 2. array like [a,b,c] after each field, define the ui html tag in view, 
		a for title, 
		b for show or not ,  
		c for element html tag , currently suppor : check、radio、select、input、textarea、upload tag
* 3. XXX
*/

package user

import "github.com/mjiulee/lego"

func init() {
	lego.AddBeanToSynList(new(AppTenantUserRel))
}

const (
	DEFAULT_mini_app_id = 0 //单APP场景使用
	DEFAULT_TENANT_ID = 0 //单租户场景使用
)
/* table: "tb_app_tenant_user_rel"
 * -----------------
*/
type AppTenantUserRel struct {
	Id        int64  `xorm:"pk" json:",string"`                  // ["id","hide","hidden"]
	IfDel     int `xorm:"default 0"` // ["deleted","hide","hidden"]
	Cdate     string `xorm:"DateTime created"`    // ["create","show","datetime"]
	Udate     string `xorm:"DateTime updated"`    // ["update","show","datetime"]
    // add your custom field here

    MiniAppId int64  `xorm:"" json:",string"`                  // ["mini app id","show","input"]
	TenantId int64  `xorm:"" json:",string"`                      // ["tenant id","show","input"]
	Uid int64  `xorm:"" json:",string"`                  // ["uid","show","input"]

}